<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddAttrStrInDocumentRelationTable extends AbstractMigration
{

    public function up()
    {
        $this->table('document_relation')
            ->addColumn('attr_str', 'string', [
                'null' => false,
                'default' => '',
                'limit' => 256,
                'comment' => '属性str',
            ])
            ->save();
    }

    public function down()
    {
        $this->table('document_relation')->removeColumn('attr_str')->save();
    }
}
